local DM = "contamination:black_diamond"
local ST = "group:stick"
local LP = "contamination:lye_paste"

minetest.register_craft({
	output="contamination:catalyst",
	recipe={
		{"default:steelblock","flowers:mushroom_brown","default:steelblock"},
		{"flowers:mushroom_brown","default:mese_crystal","flowers:mushroom_brown"},
		{"default:steelblock","flowers:mushroom_brown","default:steelblock"}
	}
})

minetest.register_craft({
	type="shapeless",
	output="contamination:lye_paste 16",
	recipe={"contamination:lye","bucket:bucket_water"},
	replacements={{"bucket:bucket_water","bucket:bucket_empty"}},
})

minetest.register_craft({
	output = "contamination:black_diamond_block",
	recipe = {
		{DM, DM, DM},
		{DM, DM, DM},
		{DM, DM, DM},
	}
})

minetest.register_craft({
	output = "contamination:black_diamond 9",
	recipe = {
		{"contamination:black_diamond_block"},
	}
})

minetest.register_craft({
	output="contamination:sword_bdiamond",
	recipe={
		{DM},
		{DM},
		{ST},
	}
})

minetest.register_craft({
	output="contamination:pick_bdiamond",
	recipe={
		{DM,DM,DM},
		{"",ST,""},
		{"",ST,""},
	}
})

minetest.register_craft({
	output = "contamination:axe_bdiamond",
	recipe = {
		{DM, DM},
		{DM, ST},
		{"", ST},
	}
})

minetest.register_craft({
	output = "contamination:shovel_bdiamond",
	recipe = {
		{DM},
		{ST},
		{ST},
	}
})

minetest.register_craft({
	type="shapeless",
	output="default:wood",
	recipe={LP, "contamination:contaminated_wood"}
})

minetest.register_craft({
	type="shapeless",
	output="default:dirt",
	recipe={LP, "contamination:contaminated_dirt"}
})

minetest.register_craft({
	type="shapeless",
	output="default:stone",
	recipe={LP, "contamination:contaminated_stone"}
})

minetest.register_craft({
	type="shapeless",
	output="default:cobble",
	recipe={LP, "contamination:contaminated_cobble"}
})

minetest.register_craft({
	type="shapeless",
	output="default:dirt_with_grass",
	recipe={LP, "contamination:contaminated_dirt_with_grass"}
})

minetest.register_craft({
	type="shapeless",
	output="default:iron_lump",
	recipe={LP, "contamination:stone_with_rust"}
})



minetest.register_craft({
	type="shapeless",
	output="farming:mushroom_brown",
	recipe={LP, "contamination:contaminated_mushroom"}
})

minetest.register_craft({
	type="shapeless",
	output="default:tree",
	recipe={LP, "contamination:contaminated_tree"}
})